
FROM registry.cn-chengdu.aliyuncs.com/lansexiongdi/work:v1

RUN echo 'http://mirrors.ustc.edu.cn/alpine/v3.5/main' > /etc/apk/repositories \
&& echo 'http://mirrors.ustc.edu.cn/alpine/v3.5/community' >>/etc/apk/repositories \
&& apk update && apk add tzdata \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone

ARG APP_RELATIVE_PATH


WORKDIR /app
COPY  /${APP_RELATIVE_PATH}/bin /app
COPY  ./bin /app
EXPOSE 8000
VOLUME /data/conf

CMD ["./server"]